﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Littlebeer.Deduplicate.Functions
{
    public static class DeduplicateFunctionFactory
    {
        public static IDeduplicateFunction GetFunction(string functionName)
        {
            IDeduplicateFunction result=new DefaultFunction();
            switch (functionName)
            {
                case (""):
                    {
                        result= new DefaultFunction();
                        break;
                    }
                case ("LowCase"):
                    {
                        result = new LowCase();
                        break;
                    }
                case ("Similar"):
                    {
                        result = new Similar();
                        break;
                    }
                default:
                    {
                        result = new DefaultFunction();
                        break;
                    }
            }
            return result;
        }
    }
}
